From: Alex Crichton Date: Sun, 12 Nov 2017 10:25:06 +0000 (-0800) Subject: Fix compilation on more platforms X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~5^2~3^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=51e5899395613031ad35b19297243dd7075683c8;p=cargo.git Fix compilation on more platforms --- diff --git a/src/cargo/core/shell.rs b/src/cargo/core/shell.rs index a26fd6c2c..ade08505d 100644 --- a/src/cargo/core/shell.rs +++ b/src/cargo/core/shell.rs @@ -287,7 +287,7 @@ impl ColorChoice { } } -#[cfg(unix)] +#[cfg(any(target_os = "linux", target_os = "macos"))] mod imp { use std::mem; @@ -308,6 +308,13 @@ mod imp { } } +#[cfg(all(unix, not(any(target_os = "linux", target_os = "macos"))))] +mod imp { + pub fn stderr_width() -> Option { + None + } +} + #[cfg(windows)] mod imp { use std::mem;